Skip to content

[InferDT] MAC-like node dtype output to fp32 if any fp32 operands#230

Merged
jmitrevs merged 1 commit intofastmachinelearning:mainfrom
iksnagreb:fix/infer-fp32-mac
Jan 29, 2026
Merged

[InferDT] MAC-like node dtype output to fp32 if any fp32 operands#230
jmitrevs merged 1 commit intofastmachinelearning:mainfrom
iksnagreb:fix/infer-fp32-mac

Conversation

@iksnagreb
Copy link
Collaborator

@iksnagreb iksnagreb commented Jan 23, 2026

This adds datatype inference for MAC-like operations receiving floating-point inputs: If any of the inputs is a float, the output should be considered a float as well. This also matches the fallback behavior (see https://github.com/fastmachinelearning/qonnx/pull/230/files#diff-80eda79b3e7e45d86e96b0a595e9257bebaac10a420a31b8fd92ca20d35f133dR136), just that for these MAC-like operations we do not end up at the fallback and thus currently won't have datatype annotation with floating-point inputs.

@iksnagreb iksnagreb added this to the v1.0.0 milestone Jan 23, 2026
Copy link
Collaborator

@makoeppel makoeppel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you tell us a bit what this PR does?

@jmitrevs jmitrevs merged commit 6044098 into fastmachinelearning:main Jan 29, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants